﻿using System.Windows.Forms;
using MobileCommissionManagement.Common;

namespace MobileCommissionManagement.VodafoneControls
{
    public partial class VodafoneBusiness : Form
    {
        private Negocio _business;
        
        #region Properties

        public VodafoneController VodafoneController
        {
            set { clientLookUpEdit.Properties.DataSource = value.Clients; }
        }

        public Controller GlobalController
        {
            set { entityLookUpEdit.Properties.DataSource = value.Entities; }
        }

        public Negocio Document
        {
            set
            {
                _business = value;
                negociosBindingSource.DataSource = _business;
            }
            get { return _business; }
        }

        #endregion

        public VodafoneBusiness()
        {
            InitializeComponent();
        }
    }
}
